<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">

<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
if ($_GET[type]=='1'){
$news_title='个人文件柜';
$nums=24;
$sqlnumeid=3;
}elseif($_GET[type]=='2'){
$news_title='公共文件柜';
$nums=107;
$sqlnumeid=9;
}elseif($_GET[type]=='3'){
$news_title='网络硬盘';
$nums=109;
$sqlnumeid=9;
}elseif($_GET[type]=='4'){
$news_title='下载列表';
$nums=65;
$sqlnumeid=9;
}elseif($_GET[type]=='5'){
$news_title='规章制度';
$nums=66;
$sqlnumeid=9;
}elseif($_GET[type]=='6'){
$news_title='报表中心';
$nums=110;
$sqlnumeid=9;
}else{
}
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$sqlnumeid."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.title.value=="")
   { alert("文件名称不能为空！");
     document.save.title.focus();
     return (false);
   }
   if(document.save.documentid.value=="")
   { alert("文件夹不能为空！");
     document.save.documentid.focus();
     return (false);
   }
   if(document.save.annex.value=="")
   { alert("附件不能为空！");
     document.save.annex.focus();
     return (false);
   }
   
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>
<form name="save" method="post" action="?ac=edit&do=save&fileurl=document&type=<?=$_GET['type']?>">
	<input type="hidden" name="savetype" value="edit" />
	<input type="hidden" name="id" value="<?=$workdate['id']?>" />
	<input type="hidden" name="type" value="<?=$_GET['type']?>" />
	
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center"><?=$news_title?></td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td nowrap class="TableData" width="15%"> 文件名称：<? get_user_add_help()?></td>
      <td class="TableData">
        <input type="text" name="title" class="BigInput" size="40" value="<?=$workdate['title']?>"/></td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 文件夹：<? get_user_add_help()?></td>
      <td class="TableData">

	  
	  <select class="SelectStyle" name="documentid">
		<option value="" >无目录</option>
			<?php GET_document_PUBLIC_LIST(0,$workdate['documentid'],0,0,$_USER->id)?>
	 </select>
      </td>
    </tr>
	

	
    <tr>
      <td nowrap class="TableData">附件：<? get_user_add_help()?></td>
      <td class="TableData"><input type="text" name="annex" class="BigInput" size="40" value="<?=$workdate['annex']?>" /><a href="#" onClick="window.open ('admin.php?ac=uploadadd&fileurl=public&name=annex', 'newwindow', 'height=200, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')">+上传</a>	 
      </td>
    </tr>
	
	<?php if($_GET["type"]!='1'){?>
	<tr>
      <td nowrap class="TableContent" width="15%"> 指定阅读人：<? get_user_add_help()?></td>
      <td class="TableData">
	  <?php
	  get_oa_member_public(2,"readuser",$workdate['readuser'],"+选择阅读人",60,4)
	  ?>
	  &nbsp;&nbsp;&nbsp;&nbsp;<?php get_sms_info_phone_box("阅读人","readuser")?>
	  </td>
    </tr>
	
	<?php }?>
	
	
	
</table>
<table  width="90%" style="border-left:#CCCCCC solid 1px;border-right:#CCCCCC solid 1px;border-bottom:#CCCCCC solid 1px;">
    <tr>
      <td width="15%"  style="border-right:#CCCCCC solid 1px;">&nbsp;文件内容：</td>
      <td width="85%" style="padding-top:10px; padding-bottom:10px; padding-left:3px;"><script charset="utf-8" src="eweb/kindeditor.js"></script>
<script>
        KE.show({
                id : 'content'
        });
</script>
		<textarea name="content" cols="70" rows="12" class="input" style="width:600px;height:300px;"><?=$workdate['content']?></textarea>	 
      </td>
    </tr>
</table>
  <table class="TableBlock no-top-border" width="90%"> 
	
   
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="button" name="Submit" value="保存信息" class="BigButton" onclick="sendForm();"> 
        
      </td>
    </tr>
  </table>
</form>
</div>
</div>

 
</body>
</html>
